﻿@model MongoServices.Example.Models.ViewModels.BlogPostDetailViewModel

@{
    ViewBag.Title = @Model.Title + " | MongoServices Example";
}

<div class="blog-posts">
	<div class="post">
		<div class="post-title post-action">
			@Html.DisplayFor(p => p.Title)
		</div>
		<div class="post-date-posted">
			Date Posted: @Html.DisplayFor(p => p.DatePosted)
		</div>
		<div class="post-actions post-action">
			@Html.ActionLink("Edit Post", "Edit", new { id = Model.Id })
				| 
			@Html.ActionLink("Delete Post", "Delete", new { id = Model.Id }) 
		</div>
		<div class="clear"></div>
		<div class="post-body">
			@Html.DisplayFor(p => Model.Body)
		</div>
		<div class="post-read-more post-action">
			@Html.ActionLink("Back to posts", "Index")
		</div>
		<div class="clear"></div>
	</div>
</div>